package com.framework.boc.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.framework.boc.admin.entity.ContractInfo;
import com.framework.boc.admin.entity.MaterialInfo;
import com.framework.boc.admin.mapper.MaterialInfoMapper;
import com.framework.boc.admin.service.IMaterialInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Leil
 * @since 2020-08-27
 */
@Service
public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, MaterialInfo> implements IMaterialInfoService {
    public List<MaterialInfo> queryContractInfo(String orderNo, String vbillCode){
        QueryWrapper<MaterialInfo> queryWrapper = new QueryWrapper<MaterialInfo>();
        queryWrapper.eq("order_no",orderNo);
        queryWrapper.eq("vbill_code",vbillCode);
        return this.baseMapper.selectList(queryWrapper);
    }
}
